package fr.umlv.m2.jee.spij.persistence.education;

import javax.persistence.Column;
import javax.persistence.MappedSuperclass;

/**
 * Superclass Exam who contain information about exam.
 *
 * @author Lounes Akroune
 * @author Aurelien Scelles
 */
@MappedSuperclass
public abstract class Exam extends Education {

    /**
     * Weight of the review.
     */
    @Column(name = "EXA_WEIGHT", nullable = false)
    private int weight;

    /**
     * Setter of Weight.
     *
     * @param newWeight the new weight to set.
     */
    public final void setWeight(final int newWeight) {
        this.weight = newWeight;
    }

    /**
     * Getter of Weight.
     *
     * @return weight
     */
    public final int getWeight() {
        return weight;
    }

}
